#include <header.h>

int main(){

    //int file_fd = open("./1.txt", O_RDWR|O_CREAT | O_EXCL, 0600);

    // int file_fd = open("./1.txt", O_RDWR|O_TRUNC);

    int file_fd = open("./1.txt", O_RDWR|O_APPEND);
    ERROR_CHECK(file_fd, -1, "open");

    write(file_fd, "nihao", 5);

    return 0;
}

